package com.vhuan.self_discipline_service.mapper.battery;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.vhuan.self_discipline_service.domain.battery.dto.BatteryDTO;
import com.vhuan.self_discipline_service.domain.battery.po.BatteryEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BatteryMapper extends BaseMapper<BatteryEntity> {

    /**
     * 获取用户电池列表
     * @param uid 用户ID
     * @return 电池列表
     */
    List<BatteryDTO> getBatteryList(@Param("uid") Long uid);
}
